<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>拖拽</title>

  <link rel="stylesheet" href="./index2.css">
</head>
<body>
  <a href="https://blog.csdn.net/weixin_41910848/article/details/82218243">原文链接</a>

  <!-- <div class="box" id="drag"></div> -->
  <div class="box1" draggable="true" id="source"></div>

  <script src="./index2.js"></script>
</body>
</html>